<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{margin: 0;padding:0;}
        .search{
            margin-left: auto;
            margin-right:auto;
            margin-top:20px;
            width: 50px;
            height:20px;
            position: relative;
        }
        input{
            width:100px;
            height: 10px;
            position:absolute; 
            left:0;
            top:0;
        }
        button{
            position: absolute;
            width: 20px;
            height:10px;
            right:0;
        }
    </style>
</head>
<body>
<div class="search">
    <input type="text">
    <button></button>
</div>
</body>
</html>
